﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="HistorialdeUsoView.aspx.cs" Inherits="Recursos.WebForm6" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register TagPrefix="rsweb" Namespace="Microsoft.Build.Framework.XamlTypes" Assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 65px;
        }
    .style2
    {
        width: 601px;
    }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Historial de Uso</h2>
    <p>&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label ID="Label4" runat="server" Text="Tipo de Reservación"></asp:Label>
    &nbsp;&nbsp;
        <asp:DropDownList ID="DropDownListTipoReporte" runat="server">
            <asp:ListItem>Curso</asp:ListItem>
            <asp:ListItem>Particular</asp:ListItem>
        </asp:DropDownList>
    </p>
    <table>
        <tr>
            <td>  <table style="width: 220px">
        <tr>
            <td class="style1">
                <fieldset>
                    <legend class="hdrText">Periodo</legend>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Modalidad"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownListModalidad" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Periodo"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownListPeriodo" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Año"></asp:Label>
                            </td>
                            <td>
                            
                                <asp:TextBox ID="TextBoxAño" runat="server"></asp:TextBox>
                              
                                <asp:CompareValidator ID="cv2" runat="server" ControlToValidate="TextBoxAño" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td class="style1">
               <fieldset>
                <legend> Sede </legend>

                   <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
                       DataTextField="Nombre" DataValueField="id" 
                       onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
                   </asp:RadioButtonList>  

            </fieldset> 
            </td>
            
        </tr>
        <tr>
            <td class="style1">
                <fieldset>
                    <legend>Espacio</legend>
                    <asp:DropDownList ID="DropDownListEspacio" runat="server">
                    </asp:DropDownList>
                </fieldset>
            </td>
        </tr>
        <tr style="text-align: center">

            <td class="style1">
                <br />
                <asp:Button ID="Button1" runat="server" Text="Consultar" 
                    onclick="Button1_Click" />
            </td>
        </tr>
    </table></td>
            <td class="style2">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
                    Font-Size="8pt" Height="435px" InteractiveDeviceInfos="(Collection)" 
                    WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="876px" 
                    Visible="False">
                    <LocalReport ReportPath="View\ReportHu.rdlc">
                    </LocalReport>
                  

                </rsweb:ReportViewer>
            </td>
        </tr>

    </table>
  
</asp:Content>
